---
title: "SQL-050: Update an injured body-part record"
summary: Update an injured body-part record
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Business.Claim
reference_type: embedded
---

# SQL-050 Update an injured body-part record

Updates the body-part code, side, primary flag, and injury nature on a worker's injured body-part row.

## Classification



| Field | Value |
| --- | --- |
| **SQL ID** | SQL-050 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsWorkerInjuredBodyPart` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters



| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `BodyPartCode` | Input | String | 5 | Injured body part code |
| `BodyPartSideCode` | Input | String | 5 | Side/laterality code |
| `PrimaryIndicator` | Input | String | 1 | Primary body part flag |
| `InjuryNatureCode` | Input | String | 5 | Nature of injury code |
| `UpdateUser` | Input | String | 30 | Auditing user |
| `ClaimID` | Input | Decimal | — | Row key |
| `UpdateNum` | Input | Decimal | — | Optimistic-concurrency check value |

## Tables



| Table | Access | Columns used |
| --- | --- | --- |
| [CL_WORKER_INJURED_BODY_PART](../database-tables.md#cl_worker_injured_body_part) | UPDATE | BODY_PART_CODE, BODY_PART_SIDE_CODE, PRIMARY_BODY_PART_IND, INJURY_NATURE_CODE, UPDATE_NUM, UPDATE_USER_ID, UPDATE_DATE, CLAIM_ID |

## Sample SQL

```sql
-- Update injured body-part record
Update CL_WORKER_INJURED_BODY_PART
   Set BODY_PART_CODE        = :BodyPartCode,
       BODY_PART_SIDE_CODE   = :BodyPartSideCode,
       PRIMARY_BODY_PART_IND = :PrimaryIndicator,
       INJURY_NATURE_CODE    = :InjuryNatureCode,
       UPDATE_NUM            = UPDATE_NUM + 1,
       UPDATE_USER_ID        = :UpdateUser,
       UPDATE_DATE           = SYSDATE
 Where CLAIM_ID   = :ClaimID
   And UPDATE_NUM = :UpdateNum
```

## Operations and processes

- [Injured body-part maintenance](../operations/injured-body-part.md)

## Business rules

- [BR-006: Primary body part is required](../business-rules.md#br-006-primary-body-part-is-required)
- [BR-007: Only one primary body part is allowed](../business-rules.md#br-007-only-one-primary-body-part-is-allowed)
- [BR-012: Optimistic concurrency contention check](../business-rules.md#br-012-optimistic-concurrency-contention-check)

## Sources
- SAIF.Business.Claim/clsWorkerInjuredBodyPart.vb
